Skip to content

refactor: add default min row height to dashboard#8099

Merged
tomivirkki merged 2 commits intomainfrom
refactor/dashboard-default-min-row-height
Nov 8, 2024
Merged

refactor: add default min row height to dashboard#8099
tomivirkki merged 2 commits intomainfrom
refactor/dashboard-default-min-row-height

Conversation

@tomivirkki
Copy link
Member

Description

Add default min row height (12rem) to dashboard layout.
This will also enable vertical resizing of widgets by default.

Type of change

Refactor/feature

@tomivirkki tomivirkki force-pushed the refactor/dashboard-default-min-row-height branch from fd0cc9d to 9aa2f06 Compare November 7, 2024 08:35
if (height === undefined) {
dashboard.style.setProperty('--vaadin-dashboard-row-min-height', 'auto');
} else {
dashboard.style.setProperty('--vaadin-dashboard-row-min-height', height !== undefined ? `${height}px` : null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always true.

Suggested change
dashboard.style.setProperty('--vaadin-dashboard-row-min-height', height !== undefined ? `${height}px` : null);
dashboard.style.setProperty('--vaadin-dashboard-row-min-height', `${height}px`);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, cleaned up the helper

Copy link
Contributor

@ugur-vaadin ugur-vaadin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added one suggestion for the helper.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 8, 2024

@tomivirkki tomivirkki merged commit 3409e3a into main Nov 8, 2024
@tomivirkki tomivirkki deleted the refactor/dashboard-default-min-row-height branch November 8, 2024 08:17
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha3 and is also targeting the upcoming stable 24.6.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments